package org.hxyjs.dao;

import org.hxyjs.entity.ChatRoom;
import org.hxyjs.page.PageInfo;

import java.util.List;

public interface ChatRoomDao {
    public List<ChatRoom>  getAllChatRooms()  throws Exception;
    public ChatRoom  getChatRoomByUno(String uno)  throws Exception;
    public List<ChatRoom> getChatRoomsByPage(PageInfo pageInfo);
    //增删改的返回值都是整数
    Integer deleteChatRoom(String uno)  throws Exception;
    Integer updateChatRoom(ChatRoom chatadmin)  throws Exception;
    Integer addChatRoomByUno(ChatRoom chatadmin)  throws Exception;

    ChatRoom getChatRoomsWithOrders(String uno)throws Exception;

    ChatRoom getAccountByAccountName(String uno)throws Exception;



}
